/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui.gui.dialogs;

import ui.gui.actions.LoadModelAction;
import ui.gui.actions.LoadWorkspaceAction;
import ui.gui.actions.OpenFileAction;

/**
 *
 * @author Leonhart
 */
public class StartpageContent extends javax.swing.JPanel {

    /**
     * Creates new form StartpageContent
     */
    public StartpageContent() {
        initComponents();
        
        jButton1.addActionListener(new LoadWorkspaceAction(null));
        jButton2.addActionListener(new OpenFileAction(null));
        jButton3.addActionListener(new LoadModelAction(null, true));
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));
        setMinimumSize(new java.awt.Dimension(400, 500));
        setPreferredSize(new java.awt.Dimension(1920, 622));
        setLayout(null);

        jButton1.setIcon(new javax.swing.ImageIcon(StartpageContent.class.getResource("/resources/loadWorkspace.png")));
        jButton1.setText("LOAD WORKSPACE");
        jButton1.setBorder(null);
        jButton1.setBorderPainted(false);
        jButton1.setContentAreaFilled(false);
        jButton1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        jButton1.setIconTextGap(10);
        add(jButton1);
        jButton1.setBounds(20, 390, 350, 50);

        jButton2.setIcon(new javax.swing.ImageIcon(StartpageContent.class.getResource("/resources/loadFile.png")));
        jButton2.setText("LOAD A FILE");
        jButton2.setBorder(null);
        jButton2.setBorderPainted(false);
        jButton2.setContentAreaFilled(false);
        jButton2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        jButton2.setIconTextGap(10);
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });
        add(jButton2);
        jButton2.setBounds(20, 270, 350, 50);

        jButton3.setIcon(new javax.swing.ImageIcon(StartpageContent.class.getResource("/resources/parseModel.png")));
        jButton3.setText("LOAD And PARSE MODEL");
        jButton3.setBorder(null);
        jButton3.setBorderPainted(false);
        jButton3.setContentAreaFilled(false);
        jButton3.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        jButton3.setIconTextGap(10);
        add(jButton3);
        jButton3.setBounds(20, 330, 350, 50);

        jLabel2.setBackground(new java.awt.Color(255, 255, 255));
        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jLabel2.setIcon(new javax.swing.ImageIcon(StartpageContent.class.getResource("/resources/StartPage.png")));
        jLabel2.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        jLabel2.setOpaque(true);
        add(jLabel2);
        jLabel2.setBounds(0, 0, 1920, 640);
    }// </editor-fold>//GEN-END:initComponents

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        
    }//GEN-LAST:event_jButton2ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JLabel jLabel2;
    // End of variables declaration//GEN-END:variables
}
